﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SugarWebApi
{

	public abstract class SugarWebResult
	{

		#region Constructors

		internal SugarWebResult(
			SugarWebCommand command,
			bool success)
		{
			this._command = command;
			this._success = success;
		}

		#endregion

		#region Fields

		private readonly SugarWebCommand _command;
		private readonly bool _success;

		#endregion

		#region Properties

		public SugarWebCommand Command
		{
			get { return _command; }
		} 

		public bool Success
		{
			get { return _success; }
		}

		#endregion

	}
}
